from django.shortcuts import render
from .models import Information


# Create your views here.
def get_information(request):
    intro = Information.objects.get(type='简介')
    constitution = Information.objects.get(type='章程')
    structure = Information.objects.get(type='结构')
    return render(request, 'information/information.html', {
        'intro': intro,
        'constitution': constitution,
        'structure': structure
    })
